<?php
session_start();
//检测是否登录，若没登录则转向登录界面
if(!isset($_SESSION['userid'])) {
	echo "<script>alert('请先登录')</script>";
	header("Location:login.html");
	exit();
}
include('../Config/conn.php');
$sql="select * from user where username='$_SESSION[username]'";
$result=mysql_query($sql);
$row = mysql_fetch_assoc($result);
$code= $row[daili];
$status = $row[status];
$user2 = $_SESSION[username];
mysql_close();
?>